// ex8_4.cpp
#include <iostream>

struct box
{
	char maker[40];
	float height;
	float width;
	float length;
	float volume;
};

void display1(const struct box &);
void display2(struct box &);
int main(void)
{
	box b1 = {"box1", 5.0, 3.0, 4.0, 60.0};
	display1(b1);
	display2(b1);
	return 0;
}

void display1(const struct box & b)
{
	using std::cout;
	cout << "box :\n";
	cout << b.height << " " 
		 << b.width << " "
		 << b.length << " "
		 << b. volume << "\n";
}
void display2(struct box & b)
{
	using std::cout;
	b.volume = b.height * b.width * b.length;
	cout << "box :\n";
	cout << b.height << " " 
		 << b.width << " "
		 << b.length << " "
		 << b. volume << "\n";
}
